package com.game.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author lvhao
 * @since 2020-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Email extends Model<Email> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String context;

    /**
     * 金币
     */
    private Integer gold;

    /**
     * 物品id
     */
    private Integer itemId;

    /**
     * 物品数量
     */
    private Integer itemNum;

    /**
     * 时间
     */
    private String time;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
